<?php
/* @var $this ThongBaoMoiThauController */
/* @var $model FormThongBaoMoiThau */

$this->breadcrumbs=array(
	'Form Thong Bao Moi Thaus'=>array('index'),
	$model->id=>array('view','id'=>$model->id),
	'Update',
);

$this->menu=array(
	array('label'=>'List FormThongBaoMoiThau', 'url'=>array('index')),
	array('label'=>'Create FormThongBaoMoiThau', 'url'=>array('create')),
	array('label'=>'View FormThongBaoMoiThau', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage FormThongBaoMoiThau', 'url'=>array('admin')),
);
?>

<h1>Update Form <?php echo $model->ten_goi_thau; ?></h1>

<div class="form">

    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'form-thong-bao-moi-thau-form',
        // Please note: When you enable ajax validation, make sure the corresponding
        // controller action is handling ajax validation correctly.
        // There is a call to performAjaxValidation() commented in generated controller code.
        // See class documentation of CActiveForm for details on this.
        'enableAjaxValidation'=>false,
    )); ?>
    <p class="note">Fields with <span class="required">*</span> are required.</p>
    <?php echo $form->errorSummary($model); ?>
    <div class="row">
        <?php echo $form->labelEx($model,'ten_goi_thau'); ?>
        <?php echo $form->textArea($model,'ten_goi_thau',array('row'=>5)); ?>
        <?php echo $form->error($model,'ten_goi_thau'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'nganh'); ?>
        <?php echo $form->dropDownList($model,'nganh',CHtml::listData(DanhSachNganh::model()->findAll(),'id','value')); ?>
        <?php echo $form->error($model,'nganh'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'linh_vuc'); ?>
        <?php echo $form->dropDownList($model,'linh_vuc',CHtml::listData(DanhSachLinhVuc::model()->findAll(),'id','value')); ?>
        <?php echo $form->error($model,'linh_vuc'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'dia_diem'); ?>
        <?php echo $form->textField($model,'dia_diem',array('size'=>60,'maxlength'=>250)); ?>
        <?php echo $form->error($model,'dia_diem'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'ten_du_an'); ?>
        <?php echo $form->textArea($model,'ten_du_an',array('size'=>60,'maxlength'=>250)); ?>
        <?php echo $form->error($model,'ten_du_an'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'nguon_von'); ?>
        <?php echo $form->radioButtonList($model,'nguon_von',array('Không xác định'=>'Không xác định','Trong nước'=>'Trong nước','Nước ngoài'=>'Nước ngoài'),array('separator'=>'  ','labelOptions'=> array('style'=>'display:inline;'))); ?>
        <?php echo $form->error($model,'nguon_von'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'ben_moi_thau'); ?>
        <?php echo $form->textArea($model,'ben_moi_thau',array('size'=>60,'maxlength'=>250,'row'=>5)); ?>
        <?php echo $form->error($model,'ben_moi_thau'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'hinh_thuc'); ?>
        <?php echo $form->dropDownList($model,'hinh_thuc',CHtml::listData(HinhThucDauThau::model()->findAll(),'id','value')); ?>
        <?php echo $form->error($model,'hinh_thuc'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'thoi_gian_bat_dau'); ?>
        <?php echo $form->dateField($model,'thoi_gian_bat_dau'); ?>
        <?php echo $form->error($model,'thoi_gian_bat_dau'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'thoi_gian_ket_thuc'); ?>
        <?php echo $form->dateField($model,'thoi_gian_ket_thuc'); ?>
        <?php echo $form->error($model,'thoi_gian_ket_thuc'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'dia_diem_ban'); ?>
        <?php echo $form->textArea($model,'dia_diem_ban',array('size'=>60,'maxlength'=>250)); ?>
        <?php echo $form->error($model,'dia_diem_ban'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'gia_ban'); ?>
        <?php echo $form->numberField($model,'gia_ban',array('size'=>10,'maxlength'=>10)); ?>
        <?php echo $form->error($model,'gia_ban'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'thoi_gian_dong_thau'); ?>
        <?php echo $form->dateField($model,'thoi_gian_dong_thau'); ?>
        <?php echo $form->error($model,'thoi_gian_dong_thau'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'ngay_xuat_ban'); ?>
        <?php echo $form->dateField($model,'ngay_xuat_ban'); ?>
        <?php echo $form->error($model,'ngay_xuat_ban'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'so_bao_dang'); ?>
        <?php echo $form->textField($model,'so_bao_dang',array('size'=>60,'maxlength'=>150)); ?>
        <?php echo $form->error($model,'so_bao_dang'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'tinh_trang_tong_tin'); ?>
        <?php echo $form->textField($model,'tinh_trang_tong_tin',array('size'=>60,'maxlength'=>250)); ?>
        <?php echo $form->error($model,'tinh_trang_tong_tin'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'ma_thong_tin'); ?>
        <?php echo $form->textField($model,'ma_thong_tin',array('size'=>60,'maxlength'=>150)); ?>
        <?php echo $form->error($model,'ma_thong_tin'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'thong_tin_chuyen_tien'); ?>
        <?php echo $form->radioButtonList($model,'thong_tin_chuyen_tien',array('Chưa thanh toán'=>'Chưa thanh toán','Đã thanh toán'=>'Đã thanh toán', 'Miễn phí'=>'Miễn phí'),array('separator'=>'  ','labelOptions'=> array('style'=>'display:inline;'))); ?>
        <?php echo $form->error($model,'thong_tin_chuyen_tien'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'thong_tin_khac'); ?>
        <?php echo $form->textField($model,'thong_tin_khac',array('size'=>60,'maxlength'=>250)); ?>
        <?php echo $form->error($model,'thong_tin_khac'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div>